﻿using System.Windows;
using Microsoft.Phone.Controls;

namespace DevPhoneToolkitSample.Samples
{
    public partial class ExpanderControlSample : PhoneApplicationPage
    {
        public ExpanderControlSample()
        {
            InitializeComponent();
            Status.Text = "(" + (expanderControl.IsExpanded ? " Expanded" : "Collaped") + ")";
        }

        private void ExpanderControlChangeExpanded(object sender, DevPhone.Controls.ExpandedChangeEventArgs e)
        {
            Status.Text = "(" + (expanderControl.IsExpanded ? " Expanded" : "Collaped") + ")";
        }

        private void PhoneApplicationPageLoaded(object sender, RoutedEventArgs e)
        {
            //ExpanderDefault.IsExpanded = true;
            //var x = ExpanderDefault.ActualHeight;
            //ExpanderDefault.IsExpanded = false;
        }
    }
}